<?php
require '../../../zb_system/function/c_system_base.php';
require '../../../zb_system/function/c_system_admin.php';

$zbp->Load();
$action='root';
if (!$zbp->CheckRights($action)) {$zbp->ydblogError(6);die();}
if (!$zbp->CheckPlugin('ydblog')) {$zbp->ydblogError(48);die();}
$blogtitle='主题配置';

$act = "";
if ($_GET['act']){
$act = $_GET['act'] == "" ? 'd' : $_GET['act'];
}

require $blogpath . 'zb_system/admin/admin_header.php';
require $blogpath . 'zb_system/admin/admin_top.php';
$linlink=$zbp->host .'zb_system/admin/module_edit.php?act=ModuleEdt&id=';
if(isset($_POST['mail'])){
	$zbp->Config('ydblog')->Weibo = $_POST['Weibo'];//微博
	$zbp->Config('ydblog')->Qlist = $_POST['Qlist'];//邮箱订阅
	$zbp->Config('ydblog')->QQ = $_POST['QQ']; //qq
	//$zbp->Config('ydblog')->wechat = $_POST['wechat']; //wechat
	$zbp->Config('ydblog')->phone = $_POST['phone'];//电话
	$zbp->Config('ydblog')->Contactlink = $_POST['Contactlink'];//联系我们url
	$zbp->Config('ydblog')->aboutlink = $_POST['aboutlink'];//关于我们url
	$zbp->Config('ydblog')->Dizhi = $_POST['Dizhi'];//地址
	$zbp->Config('ydblog')->mail = $_POST['mail'];//邮件
	$zbp->Config('ydblog')->footleft = $_POST['footleft'];//左页脚
	$zbp->Config('ydblog')->footright = $_POST['footright'];//右页脚
	$zbp->Config('ydblog')->banquan = $_POST['banquan'];//内页版权
	$zbp->Config('ydblog')->icp = $_POST['icp'];//备案
	$zbp->Config('ydblog')->Tjdm = $_POST['Tjdm'];//统计代码
	//$zbp->Config('ydblog')->kgpicrelated =$_POST['kgpicrelated'];
	$zbp->Config('ydblog')->indextitle = $_POST['indextitle'];//首页标题
	$zbp->Config('ydblog')->Gjc = $_POST['Gjc'];//关键词
	$zbp->Config('ydblog')->Ms = $_POST['Ms'];//描述
	$zbp->Config('ydblog')->Tjdm = $_POST['Tjdm'];//统计代码
	$zbp->Config('ydblog')->ydblog_leftimg = $_POST['ydblog_leftimg'];//左侧栏图片
	$zbp->Config('ydblog')->ydblog_leftimgtitle = $_POST['ydblog_leftimgtitle'];//左侧栏图片标题
	$zbp->Config('ydblog')->ydblog_clearSetting = $_POST['ydblog_clearSetting'];//清空主题配置
	$zbp->Config('ydblog')->ydblog_gonggao = $_POST['ydblog_gonggao'];//公告
	$zbp->Config('ydblog')->ydblog_biglist = $_POST['ydblog_biglist'];//首页样式
	$zbp->SaveConfig('ydblog');
	$zbp->showHint('good');
}
?>
<div id="divMain">
	<div class="divHeader"><?php echo $blogtitle;?></div>
	<div class="SubMenu">

	<?php ydblog_SubMenu($act);?>
<!--        <a href="save.php?type=cache"><span class="m-left" style="color:#F00">一键缓存</span></a>-->
        <a href="http://www.ylefu.com" target="_blank"><span class="m-right">帮助</span></a>
    </div>
	<?php if ($act == 'a'){ ?>

<table id="form1" name="form1" width="100%" style='padding:0;margin:0;' cellspacing='0' cellpadding='0' class="tableBorder">
  <tr>
    <th width="30%"><p align="center">图片名称</p></th>
    <th><p align="center">当前图片</p></th>
	<th width="55%"><p align="center">上传文件</p></th>
  </tr>
	<form enctype="multipart/form-data" method="post" action="save.php?type=weixin">
	<tr>
    <td><p align="center">微信二维码 180x180px</p></td>
	<td>
	<p align="center"><a href="style/img/wx.jpg" target="_blank"><img src="style/img/wx.jpg" height="40px"></a></p>
	</td>
    <td><p align="center"><input name="wx.jpg" type="file"/><input name="" type="Submit" class="button" value="保存"/></p></td>
	</tr>
	</form> 
	<form enctype="multipart/form-data" method="post" action="save.php?type=logo">
	<tr>
    <td><p align="center">LOGO png 宽190px 高57px</p></td>
		<td>
	<p align="center" style="background-color:<?php echo $zbp->Config('ydblog')->colorone  ?>;"><a href="style/img/logo.png" target="_blank"><img src="style/img/logo.png" height="40px"></a></p>
	</td>
    <td><p align="center"><input name="logo.png" type="file"/><input name="" type="Submit" class="button" value="保存"/></p></td>
	</tr>
	</form> 
	<form enctype="multipart/form-data" method="post" action="save.php?type=favicon">
		<tr>
    <td><p align="center">favicon ico 网址前的图标</p></td>
		<td>
	<p align="center"><a href="style/img/favicon.ico" target="_blank"><img src="style/img/favicon.ico" height="40px"></a></p>
	</td>
    <td><p align="center"><input name="favicon.ico" type="file"/><input name="" type="Submit" class="button" value="保存"/></p></td>
	</tr>
	</form>
    <form enctype="multipart/form-data" method="post" action="save.php?type=singletitlelogo">
	<tr>
    <td><p align="center">标题前的圆图 80x80px</p></td>
		<td>
	<p align="center"><a href="style/img/singletitlelogo.png" target="_blank"><img src="style/img/singletitlelogo.png" height="40px"></a></p>
	</td>
    <td><p align="center"><input name="singletitlelogo.png" type="file"/><input name="" type="Submit" class="button" value="保存"/></p></td>
	</tr>
	</form>

</table>
	<form id="form3" name="form3" method="post">	
    <table width="100%" style='padding:0;margin:0;' cellspacing='0' cellpadding='0' class="tableBorder">
  <tr>
    <th width="15%"><p align="center">项目名称</p></th>
    <th width="50%"><p align="center">文本/代码</p></th>
	<th width="35%"><p align="center">备注说明</p></th>
  </tr>
  <tr>
    <td><label for="ydblog_biglist"><p align="center"><font color="#FF0000"><b>首页中间样式</b></font> </p></label></td>
    <td><p align="center">大图样式-><input type="text" id="ydblog_biglist" name="ydblog_biglist" class="checkbox" value="<?php echo $zbp->Config('ydblog')->ydblog_biglist;?>"/><-小图样式</p></td>
	<td><p align="center"> ON大图样式，选择OFF为小图样式</p></td>
  </tr>
  <tr>
    <td><label for="QQ"><p align="center">QQ号码</p></label></td>
    <td><p align="center"><textarea name="QQ" type="text" id="QQ" style="width:98%;"><?php echo $zbp->Config('ydblog')->QQ;?></textarea></p></td>
	<td><p align="center"> QQ 留空则不显示，调用{$zbp->Config('ydblog')->QQ}</p></td>
  </tr>
  <tr>
    <td><label for="phone"><p align="center">电话号码</p></label></td>
    <td><p align="center"><textarea name="phone" type="text" id="phone" style="width:98%;"><?php echo $zbp->Config('ydblog')->phone;?></textarea></p></td>
	<td><p align="center">电话号码，调用{$zbp->Config('ydblog')->phone}</p></td>
  </tr>
  <tr>
    <td><label for="Dizhi"><p align="center">联系地址</p></label></td>
    <td><p align="center"><textarea name="Dizhi" type="text" id="Dizhi" style="width:98%;"><?php echo $zbp->Config('ydblog')->Dizhi;?></textarea></p></td>
	<td><p align="center">联系地址 {$zbp->Config('ydblog')->Dizhi}</p></td>
  </tr>
  <tr>
    <td><label for="indextitle"><p align="center">首页标题</p></label></td>
    <td><p align="center"><textarea name="indextitle" type="text" id="indextitle" style="width:98%;"><?php echo $zbp->Config('ydblog')->indextitle;?></textarea></p></td>
	<td><p align="center">可以自定义首页标题，留空则按zblog默认显示</p></td>
  </tr>
  <tr>
    <td><label for="Gjc"><p align="center">首页关键词</p></label></td>
    <td><p align="center"><textarea name="Gjc" type="text" id="Gjc" style="width:98%;"><?php echo $zbp->Config('ydblog')->Gjc;?></textarea></p></td>
	<td><p align="center">自定义首页关键词</p></td>
  </tr>
  <tr>
    <td><label for="Ms"><p align="center">首页描述</p></label></td>
    <td><p align="center"><textarea name="Ms" type="text" id="Ms" style="width:98%;"><?php echo $zbp->Config('ydblog')->Ms;?></textarea></p></td>
	<td><p align="center">自定义首页描述</p></td>
  </tr>
  
  <tr>
    <td><label for="ydblog_gonggao"><p align="center">滚动公告文章ID</p></label></td>
    <td><p align="left"><textarea name="ydblog_gonggao" type="text" id="ydblog_gonggao" style="width:98%;"><?php echo $zbp->Config('ydblog')->ydblog_gonggao;?></textarea></p></td>
	<td><p align="center">填写要滚动的公告文章ID，多ID用英文小逗号隔开</p></td>
  </tr>
  
  <tr>
    <td><label for="ydblog_leftimg"><p align="center">左侧栏图片文章ID</p></label></td>
    <td><p align="left">
    模块标题：<textarea name="ydblog_leftimgtitle" type="text" id="ydblog_leftimgtitle" style="width:20%;"><?php echo $zbp->Config('ydblog')->ydblog_leftimgtitle;?></textarea>&nbsp;&nbsp;&nbsp;&nbsp;
    文章ID：<textarea name="ydblog_leftimg" type="text" id="ydblog_leftimg" style="width:30%;"><?php echo $zbp->Config('ydblog')->ydblog_leftimg;?></textarea></p></td>
	<td><p align="center">请输入要调用文章ID，多ID用英文小逗号隔开</p></td>
  </tr>
  
  <tr>
    <td><label for="Contactlink"><p align="center">联系我们链接</p></label></td>
    <td><p align="center"><textarea name="Contactlink" type="text" id="Contactlink" style="width:98%;"><?php echo $zbp->Config('ydblog')->Contactlink;?></textarea></p></td>
	<td><p align="center">联系我们的详细页面网址 {$zbp->Config('ydblog')->Contactlink}</p></td>
  </tr>
  <tr>
    <td><label for="aboutlink"><p align="center">关于我们链接</p></label></td>
    <td><p align="center"><textarea name="aboutlink" type="text" id="aboutlink" style="width:98%;"><?php echo $zbp->Config('ydblog')->aboutlink;?></textarea></p></td>
	<td><p align="center">关于我们的详细页面网址 {$zbp->Config('ydblog')->aboutlink}</p></td>
  </tr>
  <tr>
    <td><label for="mail"><p align="center">邮箱</p></label></td>
    <td><p align="center"><textarea name="mail" type="text" id="mail" style="width:98%;"><?php echo $zbp->Config('ydblog')->mail;?></textarea></p></td>
	<td><p align="center">邮箱地址</p></td>
  </tr>
  <tr>
    <td><label for="Weibo"><p align="center">新浪微博</p></label></td>
    <td><p align="center"><textarea name="Weibo" type="text" id="Weibo" style="width:98%;"><?php echo $zbp->Config('ydblog')->Weibo;?></textarea></p></td>
	<td><p align="center">新浪微博网址需要带http:// 留空则不显示</p></td>
  </tr>
    <tr>
    <td><label for="footleft"><p align="center">页脚左侧内容</p></label></td>
    <td><p align="center"><textarea name="footleft" type="text" id="footleft" style="width:98%;"><?php echo $zbp->Config('ydblog')->footleft;?></textarea></p></td>
	<td><p align="center">页脚左侧文字(可以用HTML)http:// 留空则不显示</p></td>
  </tr>
    <tr>
    <td><label for="footright"><p align="center">页脚右侧内容</p></label></td>
    <td><p align="center"><textarea name="footright" type="text" id="footright" style="width:98%;"><?php echo $zbp->Config('ydblog')->footright;?></textarea></p></td>
	<td><p align="center">页脚右侧侧文字(可以用HTML) 网址需要带http:// 留空则不显示</p></td>
  </tr>
    <tr>
    <td><label for="banquan"><p align="center">文章页下方版权提示</p></label></td>
    <td><p align="center"><textarea name="banquan" type="text" id="banquan" style="width:98%;"><?php echo $zbp->Config('ydblog')->banquan;?></textarea></p></td>
	<td><p align="center">文章页面下放版权说明。网址需要带http:// 留空则不显示</p></td>
  </tr>
  <tr>
    <td><label for="Qlist"><p align="center">QQ邮箱订阅连接</p></label></td>
    <td><p align="center"><textarea name="Qlist" type="text" id="Qlist" style="width:98%;"><?php echo $zbp->Config('ydblog')->Qlist;?></textarea></p></td>
	<td><p align="center">可以去 http://list.qq.com/ 申请，留空就是FEED连接</p></td>
  </tr>
  <tr>
    <td><label for="icp"><p align="center">备案号</p></label></td>
    <td><p align="center"><textarea name="icp" type="text" id="icp" style="width:98%;"><?php echo $zbp->Config('ydblog')->icp;?></textarea></p></td>
	<td><p align="center">ICP备案号,如 粤ICP备14049369号-1,留空则不显示</p></td>
	<td></td>
	</tr>
	<tr>
    <td><label for="icp"><p align="center">统计代码</p></label></td>
    <td><p align="center"><textarea name="Tjdm" type="text" id="Tjdm" style="width:98%;"><?php echo $zbp->Config('ydblog')->Tjdm;?></textarea></p></td>
	<td><p align="center">放置统计代码，没有请留空，注：也可以加入其他需要的代码</p></td>
	<td></td>
	</tr>
    
    <tr>
    <td><label for="ydblog_clearSetting"><p align="center">清空主题配置</p></label></td>
    <td><p align="left"><input type="text" id="ydblog_clearSetting" name="ydblog_clearSetting" class="checkbox" value="<?php echo $zbp->Config('ydblog')->ydblog_clearSetting;?>"/><font color="#FF0000">慎用，会清除之前此主题配置内的设置，回归默认，开启后，切换一次主题即可清除"</font></p></td>
	<td><p align="center">可解决主题升级为2.4后的打开错误问题</p></td>
	<td></td>
	</tr>
    
</table>
   <input name="" type="Submit" class="button" style="margin-top:10px;width:99%;padding:0 auto;" value="保存"/>
    </form>
	<?php
	}
	if(isset($_POST['colorone'])){
	$zbp->Config('ydblog')->colorone = $_POST['colorone'];
	$zbp->Config('ydblog')->colortwo = $_POST['colortwo'];
	$zbp->Config('ydblog')->colorthree = $_POST['colorthree'];
	$zbp->Config('ydblog')->colorfour = $_POST['colorfour'];
	$zbp->SaveConfig('ydblog');
	$zbp->showHint('good');
}
	if ($act == 'm'){
	?>
	<form id="form3" name="form3" method="post">
	<table width="100%" style='padding:0;margin-top:5px;' cellspacing='0' cellpadding='0' class="tableBorder">
  <tr>
    <th width="10%"><p align="center">项目名称</p></th>
    <th width="21%"><p align="center">顶导航背景色</p></th>
    <th width="21%"><p align="center">顶导航高亮色(当前高亮)</p></th>
    <th width="21%"><p align="center">链接文字颜色</p></th>
	<th width="15%"><p align="center">页脚文字颜色</p></th>
  </tr>
  	<tr>
	<td><p align="center">网站颜色</p></td>
	<td><p align="center"><input id="colorone" name="colorone" value=<?php echo $zbp->Config('ydblog')->colorone;?> /><span  style="width:30px;height:auto;padding:0 10px;margin-left:10px;background-color:<?php echo $zbp->Config('ydblog')->colorone;?>;"></span></p></td>
    <td><p align="center"><input id="colorfour" name="colorfour" value=<?php echo $zbp->Config('ydblog')->colorfour;?> /><span  style="width:30px;height:auto;padding:0 10px;margin-left:10px;background-color:<?php echo $zbp->Config('ydblog')->colorfour;?>;"></span></p></td>
	<td><p align="center"><input id="colortwo" name="colortwo" value=<?php echo $zbp->Config('ydblog')->colortwo;?> /><span  style="width:30px;height:auto;padding:0 10px;margin-left:10px;background-color:<?php echo $zbp->Config('ydblog')->colortwo;?>;"></span></p></td>
	<td><p align="center"><input id="colorthree" name="colorthree" value=<?php echo $zbp->Config('ydblog')->colorthree;?> /><span  style="width:30px;height:auto;padding:0 10px;margin-left:10px;background-color:<?php echo $zbp->Config('ydblog')->colorthree;?>;"></span></p></td>
	</tr>
	</table>
	<table width="100%" style='padding:0;margin-top:5px;' cellspacing='0' cellpadding='0' class="tableBorder">
  <tr>
  	<th><p align="center" style="color: rgb(255, 0, 0);">将下列备用颜色代码复制到上面对应空格内(也可以自定义颜色)</p></th>
  </tr>
	</table>
	<table width="100%" style='padding:0;margin-top:5px;' cellspacing='0' cellpadding='0' class="tableBorder">
	<tr>
    <th width="10%"><p align="center">项目名称</p></th>
    <th width="21%"><p align="center">顶导航背景色</p></th>
    <th width="21%"><p align="center">顶导航高亮色(当前高亮)</p></th>
    <th width="21%"><p align="center">链接文字颜色</p></th>
	<th width="15%"><p align="center">页脚文字颜色</p></th>
  </tr>
  <tr>
	<td width="10%"><p align="center"><span style="width:30px;height:auto;padding:0 50px;margin-left:5px;background-color:#174900;"></span></p></td>
	<td width="21%"><p align="center">#174900<span style="width:30px;height:auto;padding:0 10px;margin-left:10px;background-color:#174900;"></span></p></td>
	<td width="21%"><p align="center">#004401<span style="width:30px;height:auto;padding:0 10px;margin-left:10px;background-color:#004401;"></span></p></td>
    <td width="21%"><p align="center">#004401<span style="width:30px;height:auto;padding:0 10px;margin-left:10px;background-color:#004401;"></span></p></td>
	<td width="15%"><p align="center">#b3f4b0<span style="width:30px;height:auto;padding:0 10px;margin-left:10px;background-color:#b3f4b0;"></span></p></td>
  </tr>
  <tr>
	<td width="10%"><p align="center"><span style="width:30px;height:auto;padding:0 50px;margin-left:5px;background-color:#407864;"></span></p></td>
	<td width="21%"><p align="center">#407864<span style="width:30px;height:auto;padding:0 10px;margin-left:10px;background-color:#407864;"></span></p></td>
	<td width="21%"><p align="center">#366655<span style="width:30px;height:auto;padding:0 10px;margin-left:10px;background-color:#407864;"></span></p></td>
    <td width="21%"><p align="center">#407864<span style="width:30px;height:auto;padding:0 10px;margin-left:10px;background-color:#407864;"></span></p></td>
	<td width="15%"><p align="center">#99b5b0<span style="width:30px;height:auto;padding:0 10px;margin-left:10px;background-color:#99b5b0;"></span></p></td>
  </tr>
  <tr>
	<td width="10%"><p align="center"><span style="width:30px;height:auto;padding:0 50px;margin-left:5px;background-color:#0c92f2;"></span></p></td>
	<td width="21%"><p align="center">#0c92f2<span style="width:30px;height:auto;padding:0 10px;margin-left:10px;background-color:#0c92f2;"></span></p></td>
	<td width="21%"><p align="center">#007ed9<span style="width:30px;height:auto;padding:0 10px;margin-left:10px;background-color:#007ed9;"></span></p></td>
    <td width="21%"><p align="center">#007ed9<span style="width:30px;height:auto;padding:0 10px;margin-left:10px;background-color:#007ed9;"></span></p></td>
	<td width="15%"><p align="center">#bee4ff<span style="width:30px;height:auto;padding:0 10px;margin-left:10px;background-color:#bee4ff;"></span></p></td>
  </tr>
  <tr>
	<td width="10%"><p align="center"><span style="width:30px;height:auto;padding:0 50px;margin-left:5px;background-color:#ed145b;"></span></p></td>
	<td width="21%"><p align="center">#ed145b<span style="width:30px;height:auto;padding:0 10px;margin-left:10px;background-color:#ed145b;"></span></p></td>
	<td width="21%"><p align="center">#ed145b<span style="width:30px;height:auto;padding:0 10px;margin-left:10px;background-color:#ed145b;"></span></p></td>
    <td width="21%"><p align="center">#ed145b<span style="width:30px;height:auto;padding:0 10px;margin-left:10px;background-color:#ed145b;"></span></p></td>
	<td width="15%"><p align="center">#FFFFFF<span style="width:30px;height:auto;padding:0 10px;margin-left:10px;background-color:#FFFFFF;"></span></p></td>
  </tr>
  <tr>
	<td width="10%"><p align="center"><span style="width:30px;height:auto;padding:0 50px;margin-left:5px;background-color:#3a6ea5;"></span></p></td>
	<td width="21%"><p align="center">#3a6ea5<span style="width:30px;height:auto;padding:0 10px;margin-left:10px;background-color:#3a6ea5;"></span></p></td>
	<td width="21%"><p align="center">#3a6ea5<span style="width:30px;height:auto;padding:0 10px;margin-left:10px;background-color:#3a6ea5;"></span></p></td>
    <td width="21%"><p align="center">#3a6ea5<span style="width:30px;height:auto;padding:0 10px;margin-left:10px;background-color:#3a6ea5;"></span></p></td>
	<td width="15%"><p align="center">#FFFFFF<span style="width:30px;height:auto;padding:0 10px;margin-left:10px;background-color:#FFFFFF;"></span></p></td>
  </tr>
	</table>
   <input name="" type="Submit" class="button" style="margin-top:0px;width:99%;padding:0 auto;" value="保存"/>
    </form>
	
    <?php
	}
	if(isset($_POST['related'])){
	$zbp->Config('ydblog')->related = $_POST['related'];//相关
	$zbp->Config('ydblog')->ydblog_relatedshuzi = $_POST['ydblog_relatedshuzi'];//相关几个
	$zbp->Config('ydblog')->wxkg = $_POST['wxkg'];
	$zbp->Config('ydblog')->wxkg4 = $_POST['wxkg4'];
	//$zbp->Config('ydblog')->indexistop = $_POST['indexistop'];//首页下部置顶推荐开启
	
	$zbp->Config('ydblog')->navleftonoff =$_POST['navleftonoff'];//
	$zbp->Config('ydblog')->hdponoff =$_POST['hdponoff'];//首页幻灯片
	$zbp->Config('ydblog')->s6tuoff =$_POST['s6tuoff'];//首页幻灯片下面6小图
	$zbp->Config('ydblog')->lefttagsyunoff =$_POST['lefttagsyunoff'];//左栏标签云
	$zbp->Config('ydblog')->Indexyx3off = $_POST['Indexyx3off'];//右下三图
	$zbp->Config('ydblog')->indexlististop = $_POST['indexlististop'];
	$zbp->Config('ydblog')->loginonoff = $_POST['loginonoff'];
	$zbp->Config('ydblog')->target_blank = $_POST['target_blank'];
	$zbp->Config('ydblog')->ydblog_leftimgoff = $_POST['ydblog_leftimgoff'];//左侧栏列表
	$zbp->Config('ydblog')->ydblog_searchoff = $_POST['ydblog_searchoff'];//搜索
	$zbp->Config('ydblog')->ydblog_leftlianxiiconoff = $_POST['ydblog_leftlianxiiconoff'];//左栏联系方式图标
	$zbp->Config('ydblog')->ydblog_cate_intro = $_POST['ydblog_cate_intro'];//分类中名+简介
	$zbp->Config('ydblog')->ydblog_gonggaooff = $_POST['ydblog_gonggaooff'];//公告滚动文字
	$zbp->SaveConfig('ydblog');
	$zbp->showHint('good');
}
	if ($act == 'b'){
	?>
	<form id="form3" name="form3" method="post">
    <table width="100%" style='padding:0;margin:0;' cellspacing='0' cellpadding='0' class="tableBorder">
  <tr>
    <th><p align="center">微信二维码<br><input type="text" id="wxkg" name="wxkg" class="checkbox" value="<?php echo $zbp->Config('ydblog')->wxkg;?>"/></p></th>
	<th><p align="center">二维码下4个图标<br><input type="text" id="wxkg4" name="wxkg4" class="checkbox" value="<?php echo $zbp->Config('ydblog')->wxkg4;?>"/></p></th>
    
    <th><p align="center">左栏联系方式图标<br><input type="text" id="ydblog_leftlianxiiconoff" name="ydblog_leftlianxiiconoff" class="checkbox" value="<?php echo $zbp->Config('ydblog')->ydblog_leftlianxiiconoff;?>"/></p></th>

    </tr>
	<tr>
	<th><p align="center">左侧菜单导航<br><input type="text" id="navleftonoff" name="navleftonoff" class="checkbox" value="<?php echo $zbp->Config('ydblog')->navleftonoff;?>"/></p></th>
	<th><p align="center">左侧栏标签<br><input type="text" id="lefttagsyunoff" name="lefttagsyunoff" class="checkbox" value="<?php echo $zbp->Config('ydblog')->lefttagsyunoff;?>"/></p></th>
	</tr>
	<tr>
   	<th><p align="center">顶部右侧登陆口显示开关<br><input type="text" id="loginonoff" name="loginonoff" class="checkbox" value="<?php echo $zbp->Config('ydblog')->loginonoff;?>"/></p></th>
    <th><p align="center">文章页相关文章<br><input type="text" id="related" name="related" class="checkbox" value="<?php echo $zbp->Config('ydblog')->related;?>"/>
    <br />几个<textarea name="ydblog_relatedshuzi" type="text" id="ydblog_relatedshuzi" style="width:30%; height:26px;"><?php echo $zbp->Config('ydblog')->ydblog_relatedshuzi;?></textarea>
    </p></th>
	<th><p align="center">首页文章列表只显置顶<br><input type="text" id="indexlististop" name="indexlististop" class="checkbox" value="<?php echo $zbp->Config('ydblog')->indexlististop;?>"/></p></th>
   </tr>
   <tr>
   	<th><p align="center">文章新链接打开(开关)<br><input type="text" id="target_blank" name="target_blank" class="checkbox" value="<?php echo $zbp->Config('ydblog')->target_blank;?>"/></p></th>
    <th><p align="center">左侧栏图片竖列<br><input type="text" id="ydblog_leftimgoff" name="ydblog_leftimgoff" class="checkbox" value="<?php echo $zbp->Config('ydblog')->ydblog_leftimgoff;?>"/></p></th>
    <th><p align="center">顶部搜索<br><input type="text" id="ydblog_searchoff" name="ydblog_searchoff" class="checkbox" value="<?php echo $zbp->Config('ydblog')->ydblog_searchoff;?>"/></p></th>
    <th><p align="center">公告滚动文字<br><input type="text" id="ydblog_gonggaooff" name="ydblog_gonggaooff" class="checkbox" value="<?php echo $zbp->Config('ydblog')->ydblog_gonggaooff;?>"/></p></th>
   </tr>
</table><br />
   <input name="" type="Submit" class="button" style="margin-top:0px;width:99%;padding:0 auto;" value="保存"/>
    </form>

    <?php
	}
	if(isset($_POST['Tjdm'])){
	
	$zbp->Config('ydblog')->posttopad = $_POST['posttopad'];
	$zbp->Config('ydblog')->postbottomad = $_POST['postbottomad'];
	$zbp->Config('ydblog')->listtopad = $_POST['listtopad'];
	$zbp->Config('ydblog')->listbottomad = $_POST['listbottomad'];
	$zbp->Config('ydblog')->listad = $_POST['listad'];
	$zbp->Config('ydblog')->pageleftad = $_POST['pageleftad'];
	$zbp->Config('ydblog')->comtopad = $_POST['comtopad'];
	$zbp->SaveConfig('ydblog');
	$zbp->showHint('good');
}
	if ($act == 'c'){
	?>
	<form id="form3" name="form3" method="post">	
    <table width="100%" style='padding:0;margin:0;' cellspacing='0' cellpadding='0' class="tableBorder">
  <tr>
    <th width="15%"><p align="center">项目名称</p></th>
    <th width="50%"><p align="center">文本/代码</p></th>
	<th width="35%"><p align="center">备注说明</p></th>
  </tr>
  <tr>
    <td><label for="listtopad"><p align="center">首页列表顶部广告</p></label></td>
    <td><p align="center"><textarea name="listtopad" type="text" id="listtopad" style="width:98%;"><?php echo $zbp->Config('ydblog')->listtopad;?></textarea></p></td>
	<td><p align="center">首页列表顶部广告</p></td>
  </tr>
  <tr>
    <td><label for="listbottomad"><p align="center">列表底部广告</p></label></td>
    <td><p align="center"><textarea name="listbottomad" type="text" id="listbottomad" style="width:98%;"><?php echo $zbp->Config('ydblog')->listbottomad;?></textarea></p></td>
	<td><p align="center">列表底部广告</p></td>
  </tr>
  <tr>
    <td><label for="listad"><p align="center">列表内部广告</p></label></td>
    <td><p align="center"><textarea name="listad" type="text" id="listad" style="width:98%;"><?php echo $zbp->Config('ydblog')->listad;?></textarea></p></td>
	<td><p align="center">列表内部广告</p></td>
  </tr>
  <tr>
    <td><label for="pageleftad"><p align="center">单页广告</p></label></td>
    <td><p align="center"><textarea name="pageleftad" type="text" id="pageleftad" style="width:98%;"><?php echo $zbp->Config('ydblog')->pageleftad;?></textarea></p></td>
	<td><p align="center">单页广告</p></td>
  </tr>
  <tr>
    <td><label for="comtopad"><p align="center">评论顶部广告</p></label></td>
    <td><p align="center"><textarea name="comtopad" type="text" id="comtopad" style="width:98%;"><?php echo $zbp->Config('ydblog')->comtopad;?></textarea></p></td>
	<td><p align="center">评论顶部广告</p></td>
  </tr>
    <tr>
    <td><label for="posttopad"><p align="center">文章顶部广告</p></label></td>
    <td><p align="center"><textarea name="posttopad" type="text" id="posttopad" style="width:98%;"><?php echo $zbp->Config('ydblog')->posttopad;?></textarea></p></td>
	<td><p align="center">文章顶部广告代码</p></td>
  </tr>
    <tr>
    <td><label for="postbottomad"><p align="center">文章底部广告</p></label></td>
    <td><p align="center"><textarea name="postbottomad" type="text" id="postbottomad" style="width:98%;"><?php echo $zbp->Config('ydblog')->postbottomad;?></textarea></p></td>
	<td><p align="center">文章底部广告代码</p></td>
  </tr>
</table>
<input name="" type="Submit" class="button" style="margin-top:10px;width:99%;padding:0 auto;" value="保存"/>
    </form>
<!-------- 左侧菜单 Star ---------->
   <?php
	}
//菜单
if(isset($_POST['navleft'])){
	$zbp->Config('ydblog')->navleft = $_POST['navleft'];
	$zbp->Config('ydblog')->navleftdiyhtml = $_POST['navleftdiyhtml'];
	$zbp->SaveConfig('ydblog');
	$zbp->ShowHint('good');
	}
	if ($act == 'k'){
	?>
<form id="form3" name="form3" method="post">
<table width="80%" style='padding:0;margin:0;' cellspacing='0' cellpadding='0' class="tableBorder">
	<tr>
		<th><p align="center"><strong>左上角/LOGO下面导航菜单设置</strong></p></th>
	</tr>
	<tr>
		<th><p align="center"><span style="color: rgb(255, 0, 0);">选择何种方式显示</span><br>
		<select name="navleft">
		<option value="<?php echo $zbp->Config('ydblog')->navleft  ?>">保持当前</option>
		<!--<option value="navleftno">不显示</option>-->
		<option value="navleftjian">自动简洁版</option>
		<!--<option value="navleftplugin">插件方式版</option>-->
		<option value="navleftdiy">自修代码版</option>
		</select></p>
		</th>
	</tr>
	<tr>
		<td><p align="center"><strong><span style="color: rgb(255, 0, 0);">注意：请仔细阅读下面一句话。<br></span>如果你选择了[自动简洁版]，可以去 模块管理 - 网站分类 - 样式改为UL嵌套型,保存，就可以弹出子分类。<br />如果你在上面选了[自修代码版]，请修改以下代码，如选其他，请忽略！<br><span style="color: rgb(255, 0, 0);">（建议在其他其他地方修改粘贴回这里）</span></strong></p></td>
	</tr>
	<tr>
		<td><p align="left"><textarea name="navleftdiyhtml" type="text" id="navleftdiyhtml" style="width:98%; height:200px;"><?php echo $zbp->Config('ydblog')->navleftdiyhtml;?></textarea></p></td>
	</tr>
</table>
<input name="" type="Submit" class="button" style="margin-top:10px;width:99%;padding:0 auto;" value="保存"/>
</form>
<!------ END ------->




<!-------- 顶部导航菜单 Star ---------->
   <?php
	}
//链接、标题、开关
if(isset($_POST['navtoplinka'])){
	$zbp->Config('ydblog')->navtoplinka =$_POST['navtoplinka'];
	$zbp->Config('ydblog')->navtoplinkb =$_POST['navtoplinkb'];
	$zbp->Config('ydblog')->navtoplinkc =$_POST['navtoplinkc'];
	$zbp->Config('ydblog')->navtoplinkd =$_POST['navtoplinkd'];
	$zbp->Config('ydblog')->navtoplinke =$_POST['navtoplinke'];
	$zbp->Config('ydblog')->navtoplinkf =$_POST['navtoplinkf'];
	$zbp->Config('ydblog')->navtoplinkg =$_POST['navtoplinkg'];
	$zbp->Config('ydblog')->navtopxialalink1 =$_POST['navtopxialalink1'];
	$zbp->Config('ydblog')->navtopxialalink2 =$_POST['navtopxialalink2'];
	$zbp->Config('ydblog')->navtopxialalink3 =$_POST['navtopxialalink3'];
	$zbp->Config('ydblog')->navtopxialalink4 =$_POST['navtopxialalink4'];
	$zbp->Config('ydblog')->navtopxialalink5 =$_POST['navtopxialalink5'];
	$zbp->Config('ydblog')->navtopxialalink6 =$_POST['navtopxialalink6'];
	$zbp->Config('ydblog')->navtopxialalink7 =$_POST['navtopxialalink7'];
	$zbp->Config('ydblog')->navtopxialalink8 =$_POST['navtopxialalink8'];
	$zbp->Config('ydblog')->navtopxialalink9 =$_POST['navtopxialalink9'];
	$zbp->Config('ydblog')->navtopxialalink10 =$_POST['navtopxialalink10'];
	$zbp->Config('ydblog')->navtopxialalink11 =$_POST['navtopxialalink11'];
	$zbp->Config('ydblog')->navtopxialalink12 =$_POST['navtopxialalink12'];
	$zbp->Config('ydblog')->navtopxialalink13 =$_POST['navtopxialalink13'];
	$zbp->Config('ydblog')->navtopxialalink14 =$_POST['navtopxialalink14'];
	$zbp->Config('ydblog')->navtopxialalink15 =$_POST['navtopxialalink15'];
	
	$zbp->Config('ydblog')->navtoptitlea =$_POST['navtoptitlea'];
	$zbp->Config('ydblog')->navtoptitleb =$_POST['navtoptitleb'];
	$zbp->Config('ydblog')->navtoptitlec =$_POST['navtoptitlec'];
	$zbp->Config('ydblog')->navtoptitled =$_POST['navtoptitled'];
	$zbp->Config('ydblog')->navtoptitlee =$_POST['navtoptitlee'];
	$zbp->Config('ydblog')->navtoptitlef =$_POST['navtoptitlef'];
	$zbp->Config('ydblog')->navtoptitleg =$_POST['navtoptitleg'];
	$zbp->Config('ydblog')->navtopxialatitle1 =$_POST['navtopxialatitle1'];
	$zbp->Config('ydblog')->navtopxialatitle2 =$_POST['navtopxialatitle2'];
	$zbp->Config('ydblog')->navtopxialatitle3 =$_POST['navtopxialatitle3'];
	$zbp->Config('ydblog')->navtopxialatitle4 =$_POST['navtopxialatitle4'];
	$zbp->Config('ydblog')->navtopxialatitle5 =$_POST['navtopxialatitle5'];
	$zbp->Config('ydblog')->navtopxialatitle6 =$_POST['navtopxialatitle6'];
	$zbp->Config('ydblog')->navtopxialatitle7 =$_POST['navtopxialatitle7'];
	$zbp->Config('ydblog')->navtopxialatitle8 =$_POST['navtopxialatitle8'];
	$zbp->Config('ydblog')->navtopxialatitle9 =$_POST['navtopxialatitle9'];
	$zbp->Config('ydblog')->navtopxialatitle10 =$_POST['navtopxialatitle10'];
	$zbp->Config('ydblog')->navtopxialatitle11 =$_POST['navtopxialatitle11'];
	$zbp->Config('ydblog')->navtopxialatitle12 =$_POST['navtopxialatitle12'];
	$zbp->Config('ydblog')->navtopxialatitle13 =$_POST['navtopxialatitle13'];
	$zbp->Config('ydblog')->navtopxialatitle14 =$_POST['navtopxialatitle14'];
	$zbp->Config('ydblog')->navtopxialatitle15 =$_POST['navtopxialatitle15'];
	
	$zbp->Config('ydblog')->navtopoff1 = $_POST['navtopoff1'];
	$zbp->Config('ydblog')->navtopoff2 = $_POST['navtopoff2'];
	$zbp->Config('ydblog')->navtopoff3 = $_POST['navtopoff3'];
	$zbp->Config('ydblog')->navtopoff4 = $_POST['navtopoff4'];
	$zbp->Config('ydblog')->navtopoff5 = $_POST['navtopoff5'];
	$zbp->Config('ydblog')->navtopoff6 = $_POST['navtopoff6'];
	$zbp->Config('ydblog')->navtopoff7 = $_POST['navtopoff7'];
	$zbp->Config('ydblog')->navtopxialaoff1 = $_POST['navtopxialaoff1'];
	$zbp->Config('ydblog')->navtopxialaoff2 = $_POST['navtopxialaoff2'];
	$zbp->Config('ydblog')->navtopxialaoff3 = $_POST['navtopxialaoff3'];
	$zbp->Config('ydblog')->navtopxialaoff4 = $_POST['navtopxialaoff4'];
	$zbp->Config('ydblog')->navtopxialaoff5 = $_POST['navtopxialaoff5'];
	$zbp->Config('ydblog')->navtopxialaoff6 = $_POST['navtopxialaoff6'];
	$zbp->Config('ydblog')->navtopxialaoff7 = $_POST['navtopxialaoff7'];
	$zbp->Config('ydblog')->navtopxialaoff8 = $_POST['navtopxialaoff8'];
	$zbp->Config('ydblog')->navtopxialaoff9 = $_POST['navtopxialaoff9'];
	$zbp->Config('ydblog')->navtopxialaoff10 = $_POST['navtopxialaoff10'];
	$zbp->Config('ydblog')->navtopxialaoff11 = $_POST['navtopxialaoff11'];
	$zbp->Config('ydblog')->navtopxialaoff12 = $_POST['navtopxialaoff12'];
	$zbp->Config('ydblog')->navtopxialaoff13 = $_POST['navtopxialaoff13'];
	$zbp->Config('ydblog')->navtopxialaoff14 = $_POST['navtopxialaoff14'];
	$zbp->Config('ydblog')->navtopxialaoff15 = $_POST['navtopxialaoff15'];
	
	$zbp->Config('ydblog')->navtopicon1 = $_POST['navtopicon1'];
	$zbp->Config('ydblog')->navtopicon2 = $_POST['navtopicon2'];
	$zbp->Config('ydblog')->navtopicon3 = $_POST['navtopicon3'];
	$zbp->Config('ydblog')->navtopicon4 = $_POST['navtopicon4'];
	$zbp->Config('ydblog')->navtopicon5 = $_POST['navtopicon5'];
	$zbp->Config('ydblog')->navtopicon6 = $_POST['navtopicon6'];
	$zbp->Config('ydblog')->navtopicon7 = $_POST['navtopicon7'];
	$zbp->Config('ydblog')->navtopxialaicon1 = $_POST['navtopxialaicon1'];
	$zbp->Config('ydblog')->navtopxialaicon2 = $_POST['navtopxialaicon2'];
	$zbp->Config('ydblog')->navtopxialaicon3 = $_POST['navtopxialaicon3'];
	$zbp->Config('ydblog')->navtopxialaicon4 = $_POST['navtopxialaicon4'];
	$zbp->Config('ydblog')->navtopxialaicon5 = $_POST['navtopxialaicon5'];
	$zbp->Config('ydblog')->navtopxialaicon6 = $_POST['navtopxialaicon6'];
	$zbp->Config('ydblog')->navtopxialaicon7 = $_POST['navtopxialaicon7'];
	$zbp->Config('ydblog')->navtopxialaicon8 = $_POST['navtopxialaicon8'];
	$zbp->Config('ydblog')->navtopxialaicon9 = $_POST['navtopxialaicon9'];
	$zbp->Config('ydblog')->navtopxialaicon10 = $_POST['navtopxialaicon10'];
	$zbp->Config('ydblog')->navtopxialaicon11 = $_POST['navtopxialaicon11'];
	$zbp->Config('ydblog')->navtopxialaicon12 = $_POST['navtopxialaicon12'];
	$zbp->Config('ydblog')->navtopxialaicon13 = $_POST['navtopxialaicon13'];
	$zbp->Config('ydblog')->navtopxialaicon14 = $_POST['navtopxialaicon14'];
	$zbp->Config('ydblog')->navtopxialaicon15 = $_POST['navtopxialaicon15'];
	$zbp->SaveConfig('ydblog');
	$zbp->ShowHint('good');
	}
	if ($act == 'j'){
	?>
<form id="form3" name="form3" method="post">
<table width="80%" style='padding:0;margin:0;' cellspacing='0' cellpadding='0' class="tableBorder">
	<tr>
		<th width="15%"><p align="center">菜单</p></th>
		<th width="15%"><p align="center">开关</p></th>
		<th width="15%"><p align="center">菜单名</p></th>
		<th width="30%"><p align="center">链接</p></th>
		<th width="25%"><p align="center">图标<span style="color: rgb(255, 0, 0);">(慎重修改)</span></p></th>
	</tr>
	<tr>
		<td><label for="navtoplinka"><p align="center">左起一</p></label></td>
		<td><p align="center">开关<br><input type="text" id="navtopoff1" name="navtopoff1" class="checkbox" value="<?php echo $zbp->Config('ydblog')->navtopoff1;?>"/></p></td>
		<td><p align="left"><textarea name="navtoptitlea" type="text" id="navtoptitlea" style="width:98%;"><?php echo $zbp->Config('ydblog')->navtoptitlea;?></textarea></p></td>
		<td><p align="left"><textarea name="navtoplinka" type="text" id="navtoplinka" style="width:98%;"><?php echo $zbp->Config('ydblog')->navtoplinka;?></textarea></p></td>
		<td><p align="left"><textarea name="navtopicon1" type="text" id="navtopicon1" style="width:98%;"><?php echo $zbp->Config('ydblog')->navtopicon1;?></textarea></p></td>
	</tr>
	<tr>
		<td><label for="navtoplinkb"><p align="center">左起二</p></label></td>
		<td><p align="center">开关<br><input type="text" id="navtopoff2" name="navtopoff2" class="checkbox" value="<?php echo $zbp->Config('ydblog')->navtopoff2;?>"/></p></td>
		<td><p align="left"><textarea name="navtoptitleb" type="text" id="navtoptitleb" style="width:98%;"><?php echo $zbp->Config('ydblog')->navtoptitleb;?></textarea></p></td>
		<td><p align="left"><textarea name="navtoplinkb" type="text" id="navtoplinkb" style="width:98%;"><?php echo $zbp->Config('ydblog')->navtoplinkb;?></textarea></p></td>
		<td><p align="left"><textarea name="navtopicon2" type="text" id="navtopicon2" style="width:98%;"><?php echo $zbp->Config('ydblog')->navtopicon2;?></textarea></p></td>
	</tr>
	<tr>
		<td><label for="navtoplinkc"><p align="center">左起三</p></label></td>
		<td><p align="center">开关<br><input type="text" id="navtopoff3" name="navtopoff3" class="checkbox" value="<?php echo $zbp->Config('ydblog')->navtopoff3;?>"/></p></td>
		<td><p align="left"><textarea name="navtoptitlec" type="text" id="navtoptitlec" style="width:98%;"><?php echo $zbp->Config('ydblog')->navtoptitlec;?></textarea></p></td>
		<td><p align="left"><textarea name="navtoplinkc" type="text" id="navtoplinkc" style="width:98%;"><?php echo $zbp->Config('ydblog')->navtoplinkc;?></textarea></p></td>
		<td><p align="left"><textarea name="navtopicon3" type="text" id="navtopicon3" style="width:98%;"><?php echo $zbp->Config('ydblog')->navtopicon3;?></textarea></p></td>
	</tr>
	<tr>
		<td><label for="navtoplinkd"><p align="center">左起四</p></label></td>
		<td><p align="center">开关<br><input type="text" id="navtopoff4" name="navtopoff4" class="checkbox" value="<?php echo $zbp->Config('ydblog')->navtopoff4;?>"/></p></td>
		<td><p align="left"><textarea name="navtoptitled" type="text" id="navtoptitled" style="width:98%;"><?php echo $zbp->Config('ydblog')->navtoptitled;?></textarea></p></td>
		<td><p align="left"><textarea name="navtoplinkd" type="text" id="navtoplinkd" style="width:98%;"><?php echo $zbp->Config('ydblog')->navtoplinkd;?></textarea></p></td>
		<td><p align="left"><textarea name="navtopicon4" type="text" id="navtopicon4" style="width:98%;"><?php echo $zbp->Config('ydblog')->navtopicon4;?></textarea></p></td>
	</tr>
	<tr>
		<td><label for="navtoplinke"><p align="center">左起五</p></label></td>
		<td><p align="center">开关<br><input type="text" id="navtopoff5" name="navtopoff5" class="checkbox" value="<?php echo $zbp->Config('ydblog')->navtopoff5;?>"/></p></td>
		<td><p align="left"><textarea name="navtoptitlee" type="text" id="navtoptitlee" style="width:98%;"><?php echo $zbp->Config('ydblog')->navtoptitlee;?></textarea></p></td>
		<td><p align="left"><textarea name="navtoplinke" type="text" id="navtoplinke" style="width:98%;"><?php echo $zbp->Config('ydblog')->navtoplinke;?></textarea></p></td>
		<td><p align="left"><textarea name="navtopicon5" type="text" id="navtopicon5" style="width:98%;"><?php echo $zbp->Config('ydblog')->navtopicon5;?></textarea></p></td>
	</tr>
	<tr>
		<td><label for="navtoplinkf"><p align="center">左起六</p></label></td>
		<td><p align="center">开关<br><input type="text" id="navtopoff6" name="navtopoff6" class="checkbox" value="<?php echo $zbp->Config('ydblog')->navtopoff6;?>"/></p></td>
		<td><p align="left"><textarea name="navtoptitlef" type="text" id="navtoptitlef" style="width:98%;"><?php echo $zbp->Config('ydblog')->navtoptitlef;?></textarea></p></td>
		<td><p align="left"><textarea name="navtoplinkf" type="text" id="navtoplinkf" style="width:98%;"><?php echo $zbp->Config('ydblog')->navtoplinkf;?></textarea></p></td>
		<td><p align="left"><textarea name="navtopicon6" type="text" id="navtopicon6" style="width:98%;"><?php echo $zbp->Config('ydblog')->navtopicon6;?></textarea></p></td>
	<tr><td>&nbsp;</td></tr>
	<tr>
		<th width="15%"><p align="center">最右下拉菜单</p></th>
		<th width="15%"><p align="center">开关</p></th>
		<th width="15%"><p align="center">菜单名</p></th>
		<th width="15%"><p align="center">链接</p></th>
		<th width="15%"><p align="center">图标<span style="color: rgb(255, 0, 0);">(慎重修改)</span></p></th>
	</tr>
	<tr>
		<td><label for="navtoplinkg"><p align="center">下拉菜单</p></label></td>
		<td><p align="center">开关<br><input type="text" id="navtopoff7" name="navtopoff7" class="checkbox" value="<?php echo $zbp->Config('ydblog')->navtopoff7;?>"/></p></td>
		<td><p align="left"><textarea name="navtoptitleg" type="text" id="navtoptitleg" style="width:98%;"><?php echo $zbp->Config('ydblog')->navtoptitleg;?></textarea></p></td>
		<td><p align="left"><textarea name="navtoplinkg" type="text" id="navtoplinkg" style="width:98%;"><?php echo $zbp->Config('ydblog')->navtoplinkg;?></textarea></p></td>
		<td><p align="left"><textarea name="navtopicon7" type="text" id="navtopicon7" style="width:98%;"><?php echo $zbp->Config('ydblog')->navtopicon7;?></textarea></p></td>
	</tr>
	<tr>
		<td><label for="navtopxialalink1"><p align="right">∟下拉1</p></label></td>
		<td><p align="center">开关<br><input type="text" id="navtopxialaoff1" name="navtopxialaoff1" class="checkbox" value="<?php echo $zbp->Config('ydblog')->navtopxialaoff1;?>"/></p></td>
		<td><p align="left"><textarea name="navtopxialatitle1" type="text" id="navtopxialatitle1" style="width:98%;"><?php echo $zbp->Config('ydblog')->navtopxialatitle1;?></textarea></p></td>
		<td><p align="left"><textarea name="navtopxialalink1" type="text" id="navtopxialalink1" style="width:98%;"><?php echo $zbp->Config('ydblog')->navtopxialalink1;?></textarea></p></td>
		<td><p align="left"><textarea name="navtopxialaicon1" type="text" id="navtopxialaicon1" style="width:98%;"><?php echo $zbp->Config('ydblog')->navtopxialaicon1;?></textarea></p></td>
	</tr>
	<tr>
		<td><label for="navtopxialalink2"><p align="right">∟下拉2</p></label></td>
		<td><p align="center">开关<br><input type="text" id="navtopxialaoff2" name="navtopxialaoff2" class="checkbox" value="<?php echo $zbp->Config('ydblog')->navtopxialaoff2;?>"/></p></td>
		<td><p align="left"><textarea name="navtopxialatitle2" type="text" id="navtopxialatitle2" style="width:98%;"><?php echo $zbp->Config('ydblog')->navtopxialatitle2;?></textarea></p></td>
		<td><p align="left"><textarea name="navtopxialalink2" type="text" id="navtopxialalink2" style="width:98%;"><?php echo $zbp->Config('ydblog')->navtopxialalink2;?></textarea></p></td>
		<td><p align="left"><textarea name="navtopxialaicon2" type="text" id="navtopxialaicon2" style="width:98%;"><?php echo $zbp->Config('ydblog')->navtopxialaicon2;?></textarea></p></td>
	</tr>
	
	<tr>
		<td><label for="navtopxialalink3"><p align="right">∟下拉3</p></label></td>
		<td><p align="center">开关<br><input type="text" id="navtopxialaoff3" name="navtopxialaoff3" class="checkbox" value="<?php echo $zbp->Config('ydblog')->navtopxialaoff3;?>"/></p></td>
		<td><p align="left"><textarea name="navtopxialatitle3" type="text" id="navtopxialatitle3" style="width:98%;"><?php echo $zbp->Config('ydblog')->navtopxialatitle3;?></textarea></p></td>
		<td><p align="left"><textarea name="navtopxialalink3" type="text" id="navtopxialalink3" style="width:98%;"><?php echo $zbp->Config('ydblog')->navtopxialalink3;?></textarea></p></td>
		<td><p align="left"><textarea name="navtopxialaicon3" type="text" id="navtopxialaicon3" style="width:98%;"><?php echo $zbp->Config('ydblog')->navtopxialaicon3;?></textarea></p></td>
	</tr>
    
    <tr>
		<td><label for="navtopxialalink4"><p align="right">∟下拉4</p></label></td>
		<td><p align="center">开关<br><input type="text" id="navtopxialaoff4" name="navtopxialaoff4" class="checkbox" value="<?php echo $zbp->Config('ydblog')->navtopxialaoff4;?>"/></p></td>
		<td><p align="left"><textarea name="navtopxialatitle4" type="text" id="navtopxialatitle4" style="width:98%;"><?php echo $zbp->Config('ydblog')->navtopxialatitle4;?></textarea></p></td>
		<td><p align="left"><textarea name="navtopxialalink4" type="text" id="navtopxialalink4" style="width:98%;"><?php echo $zbp->Config('ydblog')->navtopxialalink4;?></textarea></p></td>
		<td><p align="left"><textarea name="navtopxialaicon4" type="text" id="navtopxialaicon4" style="width:98%;"><?php echo $zbp->Config('ydblog')->navtopxialaicon4;?></textarea></p></td>
	</tr>
    <tr>
		<td><label for="navtopxialalink5"><p align="right">∟下拉5</p></label></td>
		<td><p align="center">开关<br><input type="text" id="navtopxialaoff5" name="navtopxialaoff5" class="checkbox" value="<?php echo $zbp->Config('ydblog')->navtopxialaoff5;?>"/></p></td>
		<td><p align="left"><textarea name="navtopxialatitle5" type="text" id="navtopxialatitle5" style="width:98%;"><?php echo $zbp->Config('ydblog')->navtopxialatitle5;?></textarea></p></td>
		<td><p align="left"><textarea name="navtopxialalink5" type="text" id="navtopxialalink5" style="width:98%;"><?php echo $zbp->Config('ydblog')->navtopxialalink5;?></textarea></p></td>
		<td><p align="left"><textarea name="navtopxialaicon5" type="text" id="navtopxialaicon5" style="width:98%;"><?php echo $zbp->Config('ydblog')->navtopxialaicon5;?></textarea></p></td>
	</tr>
    <tr>
		<td><label for="navtopxialalink6"><p align="right">∟下拉6</p></label></td>
		<td><p align="center">开关<br><input type="text" id="navtopxialaoff6" name="navtopxialaoff6" class="checkbox" value="<?php echo $zbp->Config('ydblog')->navtopxialaoff6;?>"/></p></td>
		<td><p align="left"><textarea name="navtopxialatitle6" type="text" id="navtopxialatitle6" style="width:98%;"><?php echo $zbp->Config('ydblog')->navtopxialatitle6;?></textarea></p></td>
		<td><p align="left"><textarea name="navtopxialalink6" type="text" id="navtopxialalink6" style="width:98%;"><?php echo $zbp->Config('ydblog')->navtopxialalink6;?></textarea></p></td>
		<td><p align="left"><textarea name="navtopxialaicon6" type="text" id="navtopxialaicon6" style="width:98%;"><?php echo $zbp->Config('ydblog')->navtopxialaicon6;?></textarea></p></td>
	</tr>
    <tr>
		<td><label for="navtopxialalink7"><p align="right">∟下拉7</p></label></td>
		<td><p align="center">开关<br><input type="text" id="navtopxialaoff7" name="navtopxialaoff7" class="checkbox" value="<?php echo $zbp->Config('ydblog')->navtopxialaoff7;?>"/></p></td>
		<td><p align="left"><textarea name="navtopxialatitle7" type="text" id="navtopxialatitle7" style="width:98%;"><?php echo $zbp->Config('ydblog')->navtopxialatitle7;?></textarea></p></td>
		<td><p align="left"><textarea name="navtopxialalink7" type="text" id="navtopxialalink7" style="width:98%;"><?php echo $zbp->Config('ydblog')->navtopxialalink7;?></textarea></p></td>
		<td><p align="left"><textarea name="navtopxialaicon7" type="text" id="navtopxialaicon7" style="width:98%;"><?php echo $zbp->Config('ydblog')->navtopxialaicon7;?></textarea></p></td>
	</tr>
    <tr>
		<td><label for="navtopxialalink8"><p align="right">∟下拉8</p></label></td>
		<td><p align="center">开关<br><input type="text" id="navtopxialaoff8" name="navtopxialaoff8" class="checkbox" value="<?php echo $zbp->Config('ydblog')->navtopxialaoff8;?>"/></p></td>
		<td><p align="left"><textarea name="navtopxialatitle8" type="text" id="navtopxialatitle8" style="width:98%;"><?php echo $zbp->Config('ydblog')->navtopxialatitle8;?></textarea></p></td>
		<td><p align="left"><textarea name="navtopxialalink8" type="text" id="navtopxialalink8" style="width:98%;"><?php echo $zbp->Config('ydblog')->navtopxialalink8;?></textarea></p></td>
		<td><p align="left"><textarea name="navtopxialaicon8" type="text" id="navtopxialaicon8" style="width:98%;"><?php echo $zbp->Config('ydblog')->navtopxialaicon8;?></textarea></p></td>
	</tr>
    <tr>
		<td><label for="navtopxialalink9"><p align="right">∟下拉9</p></label></td>
		<td><p align="center">开关<br><input type="text" id="navtopxialaoff9" name="navtopxialaoff9" class="checkbox" value="<?php echo $zbp->Config('ydblog')->navtopxialaoff9;?>"/></p></td>
		<td><p align="left"><textarea name="navtopxialatitle9" type="text" id="navtopxialatitle9" style="width:98%;"><?php echo $zbp->Config('ydblog')->navtopxialatitle9;?></textarea></p></td>
		<td><p align="left"><textarea name="navtopxialalink9" type="text" id="navtopxialalink9" style="width:98%;"><?php echo $zbp->Config('ydblog')->navtopxialalink9;?></textarea></p></td>
		<td><p align="left"><textarea name="navtopxialaicon9" type="text" id="navtopxialaicon9" style="width:98%;"><?php echo $zbp->Config('ydblog')->navtopxialaicon9;?></textarea></p></td>
	</tr>
    <tr>
		<td><label for="navtopxialalink10"><p align="right">∟下拉10</p></label></td>
		<td><p align="center">开关<br><input type="text" id="navtopxialaoff10" name="navtopxialaoff10" class="checkbox" value="<?php echo $zbp->Config('ydblog')->navtopxialaoff10;?>"/></p></td>
		<td><p align="left"><textarea name="navtopxialatitle10" type="text" id="navtopxialatitle10" style="width:98%;"><?php echo $zbp->Config('ydblog')->navtopxialatitle10;?></textarea></p></td>
		<td><p align="left"><textarea name="navtopxialalink10" type="text" id="navtopxialalink10" style="width:98%;"><?php echo $zbp->Config('ydblog')->navtopxialalink10;?></textarea></p></td>
		<td><p align="left"><textarea name="navtopxialaicon10" type="text" id="navtopxialaicon10" style="width:98%;"><?php echo $zbp->Config('ydblog')->navtopxialaicon10;?></textarea></p></td>
	</tr>
    <tr>
		<td><label for="navtopxialalink11"><p align="right">∟下拉11</p></label></td>
		<td><p align="center">开关<br><input type="text" id="navtopxialaoff11" name="navtopxialaoff11" class="checkbox" value="<?php echo $zbp->Config('ydblog')->navtopxialaoff11;?>"/></p></td>
		<td><p align="left"><textarea name="navtopxialatitle11" type="text" id="navtopxialatitle11" style="width:98%;"><?php echo $zbp->Config('ydblog')->navtopxialatitle11;?></textarea></p></td>
		<td><p align="left"><textarea name="navtopxialalink11" type="text" id="navtopxialalink11" style="width:98%;"><?php echo $zbp->Config('ydblog')->navtopxialalink11;?></textarea></p></td>
		<td><p align="left"><textarea name="navtopxialaicon11" type="text" id="navtopxialaicon11" style="width:98%;"><?php echo $zbp->Config('ydblog')->navtopxialaicon11;?></textarea></p></td>
	</tr>
    <tr>
		<td><label for="navtopxialalink12"><p align="right">∟下拉12</p></label></td>
		<td><p align="center">开关<br><input type="text" id="navtopxialaoff12" name="navtopxialaoff12" class="checkbox" value="<?php echo $zbp->Config('ydblog')->navtopxialaoff12;?>"/></p></td>
		<td><p align="left"><textarea name="navtopxialatitle12" type="text" id="navtopxialatitle12" style="width:98%;"><?php echo $zbp->Config('ydblog')->navtopxialatitle12;?></textarea></p></td>
		<td><p align="left"><textarea name="navtopxialalink12" type="text" id="navtopxialalink12" style="width:98%;"><?php echo $zbp->Config('ydblog')->navtopxialalink12;?></textarea></p></td>
		<td><p align="left"><textarea name="navtopxialaicon12" type="text" id="navtopxialaicon12" style="width:98%;"><?php echo $zbp->Config('ydblog')->navtopxialaicon12;?></textarea></p></td>
	</tr>
    <tr>
		<td><label for="navtopxialalink13"><p align="right">∟下拉13</p></label></td>
		<td><p align="center">开关<br><input type="text" id="navtopxialaoff13" name="navtopxialaoff13" class="checkbox" value="<?php echo $zbp->Config('ydblog')->navtopxialaoff13;?>"/></p></td>
		<td><p align="left"><textarea name="navtopxialatitle13" type="text" id="navtopxialatitle13" style="width:98%;"><?php echo $zbp->Config('ydblog')->navtopxialatitle13;?></textarea></p></td>
		<td><p align="left"><textarea name="navtopxialalink13" type="text" id="navtopxialalink13" style="width:98%;"><?php echo $zbp->Config('ydblog')->navtopxialalink13;?></textarea></p></td>
		<td><p align="left"><textarea name="navtopxialaicon13" type="text" id="navtopxialaicon13" style="width:98%;"><?php echo $zbp->Config('ydblog')->navtopxialaicon13;?></textarea></p></td>
	</tr>
    <tr>
		<td><label for="navtopxialalink14"><p align="right">∟下拉14</p></label></td>
		<td><p align="center">开关<br><input type="text" id="navtopxialaoff14" name="navtopxialaoff14" class="checkbox" value="<?php echo $zbp->Config('ydblog')->navtopxialaoff14;?>"/></p></td>
		<td><p align="left"><textarea name="navtopxialatitle14" type="text" id="navtopxialatitle14" style="width:98%;"><?php echo $zbp->Config('ydblog')->navtopxialatitle14;?></textarea></p></td>
		<td><p align="left"><textarea name="navtopxialalink14" type="text" id="navtopxialalink14" style="width:98%;"><?php echo $zbp->Config('ydblog')->navtopxialalink14;?></textarea></p></td>
		<td><p align="left"><textarea name="navtopxialaicon14" type="text" id="navtopxialaicon14" style="width:98%;"><?php echo $zbp->Config('ydblog')->navtopxialaicon14;?></textarea></p></td>
	</tr>
    <tr>
		<td><label for="navtopxialalink15"><p align="right">∟下拉15</p></label></td>
		<td><p align="center">开关<br><input type="text" id="navtopxialaoff15" name="navtopxialaoff15" class="checkbox" value="<?php echo $zbp->Config('ydblog')->navtopxialaoff15;?>"/></p></td>
		<td><p align="left"><textarea name="navtopxialatitle15" type="text" id="navtopxialatitle15" style="width:98%;"><?php echo $zbp->Config('ydblog')->navtopxialatitle15;?></textarea></p></td>
		<td><p align="left"><textarea name="navtopxialalink15" type="text" id="navtopxialalink15" style="width:98%;"><?php echo $zbp->Config('ydblog')->navtopxialalink15;?></textarea></p></td>
		<td><p align="left"><textarea name="navtopxialaicon15" type="text" id="navtopxialaicon15" style="width:98%;"><?php echo $zbp->Config('ydblog')->navtopxialaicon15;?></textarea></p></td>
	</tr>
    
</table>
<input name="" type="Submit" class="button" style="margin-top:10px;width:99%;padding:0 auto;" value="保存"/>
</form>
<!------ 顶部导航菜单 END ------->
	    <?php
	}
	if ($act == 'd'){
	?>

  <table width="99%" style='padding:0;margin:0;' cellspacing='0' cellpadding='0' class="tableBorder">
<p align="center"><br /><br />
    <span style="font-size: 18px; color: rgb(255, 0, 0);">【主题设置说明】</span> <br />

免费主题可到<a href="http://blog.b5b6.com" target="_blank">blog.b5b6.com</a>内留言咨询，已删除theme by代码的勿扰。<br /><br />

<span style="font-size: 18px; color: rgb(255, 0, 0);">本付费主题详细教程，<a href="http://blog.b5b6.com/7.html" target="_blank">http://blog.b5b6.com/7.html</a></span> <br /><br />
其他问题可到博客留言或者加Q 525887672 寻求解决。 <br />
</table>
	</div>
	 <?php
	}
	?>	
	</div>
</div></div>
<script type="text/javascript">
ActiveTopMenu("topmenu_ydblog");
</script> 
<?php
require $blogpath . 'zb_system/admin/admin_footer.php';
RunTime();
?>